class Animal:
    def speak(self):
        pass


class Dog(Animal):
    def speak(self):
        print("汪汪汪")


class Cat(Animal):
    def speak(self):
        print("喵喵喵")


def make_noise(animal: Animal):
    animal.speak()


dog = Dog()
cat = Cat()

make_noise(dog)
make_noise(cat)


class AC:
    def cold_wind(self):
        pass

    def hot_wind(self):
        pass

    def swing_l_r(self):
        pass


class GREE_AC(AC):
    def cold_wind(self):
        print("格力变频制冷")

    def hot_wind(self):
        print("格力制热")

    def swing_l_r(self):
        print("格力左右摆风")


class MIDEA_AC(AC):
    def cold_wind(self):
        print("美的变频制冷")

    def hot_wind(self):
        print("美的制热")

    def swing_l_r(self):
        print("美的左右摆风")


def make_cold(ac: AC):
    ac.cold_wind()


GREE_AC = GREE_AC()
MIDEA_AC = MIDEA_AC()

make_cold(GREE_AC)
make_cold(MIDEA_AC)
